package cn.eeepay.framework.service.unTransactionalImpl.wetchatPublic.impl;

import cn.eeepay.framework.dao.wetchatPublic.PublicAccountMsgTempDao;
import cn.eeepay.framework.db.pagination.Page;
import cn.eeepay.framework.model.wetchatPublic.PublicAccountMsgTempEntity;
import cn.eeepay.framework.service.unTransactionalImpl.wetchatPublic.PublicAccountMsgTempService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("publicAccountMsgTempService")
public class PublicAccountMsgTempServiceImpl implements PublicAccountMsgTempService {

    @Resource
    private PublicAccountMsgTempDao publicAccountMsgTempDao;

    @Override
    public List queryPage(Page<PublicAccountMsgTempEntity> page, PublicAccountMsgTempEntity info) {
        return publicAccountMsgTempDao.queryPage(page, info);
    }

    @Override
    public Map<String, List<PublicAccountMsgTempEntity>> queryCondition() {
        List<PublicAccountMsgTempEntity> titles = publicAccountMsgTempDao.findAllTitles();
        List<PublicAccountMsgTempEntity> pubNames = publicAccountMsgTempDao.findAllpubNames();
        Map<String, List<PublicAccountMsgTempEntity>> map = new HashMap<>();
        map.put("titles", titles);
        map.put("pubNames", pubNames);
        return map;
    }

    @Override
    public PublicAccountMsgTempEntity getById(Integer id) {
        return publicAccountMsgTempDao.getById(id);
    }

    @Override
    public int save(PublicAccountMsgTempEntity publicAccountMsgTemp) {
        return 0;
    }

    @Override
    public int updateById(PublicAccountMsgTempEntity publicAccountMsgTemp) {
        return 0;
    }

    @Override
    public int removeByIds(List<Integer> asList) {
        return 0;
    }
}
